<template>
    <keep-alive :include="cachedViews">
        <router-view :key="key" />
    </keep-alive>
</template>

<script>
export default {
  name: 'index',
  computed: {
    cachedViews() {
      return this.$store.state.tagsView.cachedViews
    },
    key() {
      return this.$route.path
    }
  }
}
</script>